package net.oschina.git.hikoyan.helloapi.shiro.jwt.repository;

import net.oschina.git.hikoyan.helloapi.shiro.jwt.authc.UserDefault;

/**
 * Created by yan on 17/1/17.
 */
public interface UserRepository {

    UserDefault findByUsername(Object userId);

    UserDefault findByUserId(Object id);

    boolean validateToken(String token);

    TokenResponse createToken(UserDefault user);
}
